#include <stdlib.h>
#include "StringConvert.h"
wchar_t* StringConvert::ToWchar_t(std::string source)
{
	wchar_t* result= (wchar_t*)malloc(sizeof(wchar_t)*(strlen(source.c_str()) + 1));
	size_t converted = 0;
	mbstowcs_s(&converted, result, strlen(source.c_str()) + 1, source.c_str(), _TRUNCATE);
	return result;
}